package map;

import lombok.Data;

import java.util.Date;

@Data
public class DistanceResult {
    private String startAddressCode;
    private String startAddress;
    private String destinationAddressCode;
    private String destinationAddress;
    private String status;
    private String distance;
    private Date updateTime;

    /**
     * 连接地址
     * @return
     */
    public String connectAddressCode() {
        return startAddressCode + destinationAddressCode;
    }

    /**
     * 连接地址
     * @return
     */
    public String connectAddressCodeOther() {
        return destinationAddressCode + startAddressCode;
    }
}
